package com.zj.user.service.impl;

import com.zj.user.mapper.UserMapper;
import com.zj.user.model.entity.User;
import com.zj.user.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program cloud-demo
 * @description:
 * @author: zhangbo
 * @create: 2022/02/03 01:06
 */
@Slf4j
@Service
public class UserServiceImpl implements IUserService {


    @Autowired
    private UserMapper userMapper;


    @Override
    public User queryUserById(Long id) {
        log.info("user...");
        return userMapper.selectUserById(id).orElse(null);
    }
}
